package com.byfan.barter.service;

import com.byfan.barter.entity.Favorites;

import java.util.List;

/**
 * @Author: FBY
 * @Description
 * @Version 1.0
 * @Date: 2021/5/14 15:38
 */
public interface FavoritesService {
    Favorites save(Favorites favorites);

    void delete(String openId,Integer commodityId);

    void deleteById(Integer id);

    Favorites getById(Integer id);

    List<Favorites> getByOpenId(String openId);
}
